import { request } from '@ruifox-cms/utils'

// 获取验证码
export function getVerificationImage(params) {
    return request({
        url: '/verify/getVerificationImage',
        method: 'get',
        params
    })
}
// 提交验证
export function humanVerify(data) {
    return request({
        url: '/verify/humanVerify',
        method: 'post',
        data
    })
}
// 通过手机号获取验证码
export function getPhoneCode(params) {
    return request({
        url: '/auth/auth/getCode',
        method: 'get',
        params
    })
}
// 手机验证码校验
export function validateCode(data) {
    return request({
        url: '/auth/auth/validateCode',
        method: 'post',
        data
    })
}